package org.tech4j.schedule.powerjob.slice;

import tech.powerjob.worker.core.processor.TaskContext;

/**
 * @program: tech4j
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/10 09:23
 **/
public class SliceTask {

    private Integer index;

    private Integer total;

    private TaskContext context;

    public SliceTask(Integer index, Integer total) {
        this.index = index;
        this.total = total;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public TaskContext getContext() {
        return context;
    }

    public void setContext(TaskContext context) {
        this.context = context;
    }
}
